package plg.grupo1.Lexico.StateMachineHierarchy;

import plg.grupo1.Lexico.TokenHierarchy.TokenFinDeFichero;

public class State9 implements State{

    private static State9 INSTANCE = null;    
	private State9(){}
	
    private synchronized static void createInstance() {
        if (INSTANCE == null) INSTANCE = new State9();
    }
    
    public static State9 getInstance() {
        if (INSTANCE == null) createInstance();
        return INSTANCE;
    }
    
	public void goNext(){
		Contexto.addToken(new TokenFinDeFichero());
		Contexto.setCurrentState(null);
	}
}
